// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility in the flutter_test package. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.

import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:aiself_prac/main.dart';

void main() {
  testWidgets('App boots and shows login page', (WidgetTester tester) async {
    await tester.pumpWidget(ProviderScope(child: MyApp()));

    // 验证登录页面显示
    expect(find.text('AI自习室'), findsOneWidget);
    expect(find.text('智能学习，高效提升'), findsOneWidget);
    expect(find.text('手机号'), findsOneWidget);
    expect(find.text('验证码'), findsOneWidget);
    expect(find.text('登录'), findsOneWidget);
  });
}
